home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Pier Shareware 1
/
Pier Shareware 1.iso
/
035a
/
cusrt2.exe
/
CUSORT.DOC
< prev
next >
Wrap
Text File
|
1992-02-01
|
7KB
|
169 lines
| Colorado Utilities Sort (CUSORT v.2.16)
|
| by
|
| Fred C. Hill
|
| Micro System Solutions
| 5048 W. Maplewood Ave.
| Littleton, CO 80123
| 1-(303) 795-7653
| 1-(800) 421-1789 (orders)
|Sorting is one of those things every computer user must do at one
time or another, and the sort program provided with most versions
of DOS just doesn't do the job. It's slow; only sorts from column
one; won't sort descending; has a limited capacity; and only uses
regular memory to sort in. Not a very useful program when you have
hundreds of thousands of records you want sorted in position 25 for
12 characters.
CUSort implements what is known as a virtual sort, allowing you to
sort more than will fit in RAM at one time. It does this by
sorting manageable portions of the input file first, and then
merging these pre-sorted lists to form the final output file. In
theory, two billion records can be sorted in one run. In actual
practice, the number of records will be limited only by the amount
of available disk or expanded memory (EMS) capacity, and, of
course, the amount of time you're willing to wait.
CuSort Revision history
version 1.0 - February 1990 Original version
version 2.0 - August 1990
Option D Directory changed to Option R Redirect.
Option D Added to indicate "No duplicates to be written."
Option L added to indicate "Sort by record length."
Bug fixed - if blank record option (/B) not selected the
program would not produce an output file.
version 2.1 - November 1990
Option E added. Do not use Expanded memory even if available.
At an abnormal termination CuSort now removes its work files.
Bugs fixed -
Option L flag was never initialized so it could
be invoked at any time by leftover memory contents.
StdIn was not always used properly.
The D & L options were added at the request of Terry Hall of
Illinois. Thanks for the idea Terry. This addition allowed me to
find the /B option bug also.
version 2.16 - February 1992
Added the quiet mode operation (/Q) at the request of Dave Holley of
MicroMax Computer Services Corp.
CUSort's operation is determined by the command line parameters you
give it when the program is started. The command line format is
CuSort [options] <inputFile >outputFile
Options:
/- Sort in descending order. The default is
ascending order.
/I Ignore upper/lower case. All input is compared
as if it were upper case.
/Q Run in quiet mode. No output is made to the StdErr
file. (StdErr is normally defined to the screen)
/R xx Redirect temporary sort files to directory
xx. (files will be deleted before program
terminates.)
/T Trim records. This parameter allows you to
remove blanks at the beginning and end of the
input records. Sequencing is done prior to
trimming.
/B Do not write blank records. All blank records
found during the input phase will be discarded.
/D Do not write duplicate records.
/L Sort by length of record. /S parm is ignored.
/S c,l Sort fields ... c = column; l = length. You may
have a maximum of 6 /S fields during any single
run. They must be placed in priority sort
order.
/E Do not use Expanded Memory (EMS) even if that memory
is available.
When sorting by fields the parameter denoting descending order
(/-), will result in the file being sequenced in descending order
from the major sort field to the minor sort field.
Examples:
CuSort /B /S 1,25 < textin.dat > textout.dat
This example sorts just like the DOS sort except that the
sort field size is limited to 25 characters and any blank
records found during sorting will not be included in the
output file.
CuSort /- /I < textin.dat > textout.dat
This example sorts the entire file, including blank
records in descending sequence. Lower case and Upper case
are sorted together.
CuSort /- /I /S 10,5 /S 2,6 < textin.dat > textout.dat
This example sorts on column 10 for 5 characters as the
major sort field and column 2 for 6 characters as the
minor sort field. The file is sorted in descending
sequence and upper and lower case characters are sorted
together.
CuSort /L /D /Q <textin >textout
This example will sort records by length of record and
will remove any duplicate records. Operate in quiet mode
ORDER FORM
Name: ------------------------------------------------------
Address: ---------------------------------------------------
City: ---------------------------- State: ---- Zip: --------
Phone: ( ) -------------------------------
Credit card: type - Visa Mastercard
Card number: ------------------------------ expires ---/---
Name on card: ---------------------------------------------
----------------------------------------------------------------
CuSort latest version . . . . . . . . . . . . . . . $ 12.00
Includes the following..
Current disk direct from author
Laser printed documentation
Shipping and handling
Telephone support
Notification of further upgrades and
products.
Colorado residents include 3% state tax and
appropriate local tax. . . . . . . . . . . . . .$ -----
Total included . . . . . . . . .$ -----
----------------------------------------------------------------
Order in one of three ways... Fill out this form and mail to:
Micro System Solutions
5417 S. Cimarron Rd.
Littleton, CO 80123
- or -
Call 1-(800) 421-1789 or 1-(300) 795-7653 (credit card orders)
- or-
Leave a Compuserve EasyPlex (Compuserve Mail) message for
Micro System Solutions (Fred C. Hill PPN 76060,102) with all
of the information above. (credit card orders or information
only please, DO NOT leave messages with credit card numbers
in the forum areas)
----------------------------------------------------------------